﻿<%@ Page Language="C#" MasterPageFile="~/mContentContainer.Master" AutoEventWireup="false"
    CodeBehind="shortcut.aspx.cs" Inherits="Rmlife.Web.shortcut" %>

<%@ Register TagPrefix="cc1" Namespace="Rmlife.Control" Assembly="Rmlife.Control" %>
<%@ Import Namespace="Rmlife.Common" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script type="text/javascript">
        var currentid = 0;
        var bar = 0;

        function validateform(theform) {
            document.getElementById('Form1').submit();
            return true;
        }

        function validate(theform) {
            if (document.getElementById('createtype').checked) {
                run();
                return false;
            }
            else {
                return true;
            }
        }

        function showInfo() {
            BOX_show('upgradelayer');
        }
    
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlace" runat="server">
    <div>
        <h3>
            <%-- 您好，<%=username %>，您属于
            <%=grouptitle%>--%>
            XXX顾客管理系统<br /><br />
            <a href="../PleaseLogin.aspx" target="_top">[<img alt="" src="../images/del.gif" style="vertical-align: middle" />退出登录]</a></h3>
        <p style="margin-bottom: 20px; margin-top: 0px; line-height: 200%">
            <asp:Label ID="AlarmCount" runat='server'></asp:Label>
            <asp:Label ID="CCICAlarmCount" runat='server'></asp:Label>
            <asp:Label ID="WatchingAlarmCount" runat='server'></asp:Label>
            <br />
        </p>
        <div class="listboxes">
            <div style="float: left; width: 200px; margin-right: 15px; margin-bottom: 25px;"
                class="nonnested">
                <div onclick="top.topFrame.locationurl('1','1','1,25','CustomerManage/CustomerList.aspx');"
                    onmouseout="this.className='boxlink';" onmouseover="this.className='boxlink highlight';"
                    class="boxlink">
                    <div class="title">
                        顾客管理
                    </div>
                    <div style="padding: 10px; height: 105px;" class="body">
                        在这里进行顾客管理操作
                    </div>
                    <div class="commands">
                    </div>
                </div>
            </div>
            <div style="float: left; width: 200px; margin-right: 15px; margin-bottom: 25px;"
                class="nonnested">
                <div onclick="top.topFrame.locationurl('22','2','22,24','SalesManage/SalesList.aspx')"
                    onmouseout="this.className='boxlink';" onmouseover="this.className='boxlink highlight';"
                    class="boxlink">
                    <div class="title">
                        销售管理
                    </div>
                    <div style="padding: 10px; height: 105px;" class="body">
                        查看和管理各种销售信息
                    </div>
                    <div class="commands">
                    </div>
                </div>
            </div>
            <div style="float: left; width: 200px; margin-right: 15px; margin-bottom: 25px;"
                class="nonnested">
                <div onclick="top.topFrame.locationurl('6','3','6,7','ProductManage/ProductList.aspx')" onmouseout="this.className='boxlink';"
                    onmouseover="this.className='boxlink highlight';" class="boxlink">
                    <div class="title">
                        产品管理与库存
                    </div>
                    <div style="padding: 10px; height: 105px;" class="body">
                        在这里进行产品与库存管理
                    </div>
                    <div class="commands">
                    </div>
                </div>
            </div>
            <div style="float: left; width: 200px; margin-bottom: 25px;" class="nonnested">
                <div onclick="top.topFrame.locationurl('20','4','20','BlackManage/BlackList.aspx')"
                    onmouseout="this.className='boxlink';" onmouseover="this.className='boxlink highlight';"
                    class="boxlink">
                    <div class="title">
                        黑名单管理
                    </div>
                    <div style="padding: 10px; height: 105px;" class="body">
                        可对黑名单和已删除的顾客进行操作
                    </div>
                    <div class="commands">
                    </div>
                </div>
            </div>
        </div>
        <div style="clear: both;">
        </div>
        <div class="ManagerForm">
            <fieldset>
                <legend style="background: url(../images/icons/icon14.jpg) no-repeat 6px 50%;">
                    <h3>
                        库存消息&nbsp;<a href="../CompanyManage/PmList.aspx">(更多)</a></h3>
                </legend>
                <div class="">
                    <table cellpadding="2" cellspacing="0" border="0" width="100%" class="pm">
                        <cc1:Repeater ID="pp" runat="server">
                            <ItemTemplate>
                                <tbody>
                                    <tr>
                                        <th align="left">
                                            <a href="../CompanyManage/PmShow.aspx?id=<%#Eval("iPMID").ToString() %>">
                                                <img alt="" src="../images/message_<%#Eval("iStatus").ToString() %>.gif" />
                                                &nbsp;
                                                <%#Eval("sMessage").ToString() %></a>
                                        </th>
                                        <td align="left">
                                            来自:<%#Eval("sFrom").ToString() %>
                                        </td>
                                        <td width="150px" align="right">
                                            <%#Convert.ToDateTime(Eval("dtPostDate").ToString()).ToString("yyyy/MM/dd HH:mm")%>
                                        </td>
                                        <td width="100px" align="right">
                                            <asp:Label ID="ShowMessageStatus" runat="server" ForeColor="Red"><%#ShowStatus( Eval( "iStatus").ToString())%> </asp:Label>
                                            &nbsp; <a href="../CompanyManage/PmShow.aspx?id=<%#Eval("iPMID").ToString() %>">查看&gt;</a>
                                        </td>
                                    </tr>
                                </tbody>
                            </ItemTemplate>
                        </cc1:Repeater>
                        <%if (!havePm)
                          { %>
                        <tr>
                            <td>
                                无求助消息
                            </td>
                        </tr>
                        <%} %>
                    </table>
                </div>
                <!--
                   <div class="Navbutton">
                            <button type="button" class="ManagerButton" id="Button2" onclick="window.location='CompanyManage.aspx';">
            <img alt="" src="../images/editfile.gif" />查看全部</button>
                        </div>
                        -->
                <iframe width="100%" height="110px" id="checkveriframe" framespacing="0px" style="border-width: 0px;"
                    frameborder="0px" noresize style="display: none;"></iframe>
            </fieldset>
        </div>
        <div>
            <br />
            <asp:Label runat="server" ID="Warning" Font-Bold="true"></asp:Label>
        </div>
        <div id="BOX_overlay" style="background: #000; position: absolute; z-index: 100;
            filter: alpha(opacity=50); -moz-opacity: 0.6; opacity: 0.6;">
        </div>
        <div id="upgradelayer" style="display: none; background: #fff; padding: 10px; border: 1px solid #999;
            width: 100%;">
            <div class="ManagerForm">
                <fieldset>
                    <legend style="background: url(../images/icons/icon60.jpg) no-repeat 6px 50%;">在线更新</legend>
                    <span id="upgradeMessage" style="float: left; text-align: left;">
                        <%= upgradeInfo%></span>
                </fieldset>
                <span style="float: left; text-align: right; width: 400px;">
                    <button<%= isNew?"":" disabled=\"true\"" %> id="update" class="ManagerButton" type="button"
                        onclick="window.location='onlineupgrade.aspx'"><img src="../images/submit.gif" />版本升级</button>&nbsp;&nbsp;
		        <button<%= isHotFix?"":" disabled=\"true\"" %> id="hotfix" class="ManagerButton" type="button" onclick="window.location='hotfix.aspx'"><img src="../images/submit.gif" />补丁升级</button>&nbsp;&nbsp;
		        <button type="button" class="ManagerButton" id="Button1" onclick="BOX_remove('upgradelayer');"><img src="../images/state1.gif"/> 取 消 </button>
                </span>
            </div>
        </div>
        <div id="setting">
        </div>
    </div>
</asp:Content>
